package com.exonline.backstage.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Subject {
    public String subjectName;
    public List<Courses> courses = new ArrayList<>();
    public List<Courses> addCourses (Courses courses) {
        this.courses.add(courses);
        return this.courses;
    }
}
